# coding:utf-8

"""
from wx import *


class Trans(Frame):
    def __init__(self, parent, id, title):
        Frame.__init__(self, parent, id, title, size=(700, 500), style=DEFAULT_FRAME_STYLE | STAY_ON_TOP)

        self.Text = TextCtrl(self, style=TE_MULTILINE | HSCROLL)
        self.Text.SetBackgroundColour('Black'), self.Text.SetForegroundColour('Steel Blue')
        self.SetTransparent(200)  # 设置透明
        self.Show()


app = App()
Trans(None, 1, "Transparent Window")
app.MainLoop()
"""

import wx


class Frame(wx.Frame):

    def __init__(self):  # ,pos=(0,0)
        wx.Frame.__init__(self, None, title=u"", pos=(10, 10), size=(1340, 670),
                          style=wx.SIMPLE_BORDER | wx.TRANSPARENT_WINDOW)
        self.Center(wx.CURSOR_WAIT)
        self.SetMaxSize((1340, 670))
        self.SetMinSize((1340, 670))
        self.panel = wx.Panel(self, size=(1340, 670))
        self.locale = wx.Locale(wx.LANGUAGE_ENGLISH)

        Close_Button = wx.Button(self.panel, label=u"关闭", pos=(1240, 0), size=(100, 45))

        self.Bind(wx.EVT_BUTTON, self.OnClose, Close_Button)

    def OnClose(self, event):
        self.Destroy()


if __name__ == "__main__":
    app = wx.App()
    frame = Frame()
    frame.Show()
    app.MainLoop()
